import 'package:FiduMart/generated/json/base/json_field.dart';
import 'package:FiduMart/generated/json/guild_user_income_entity.g.dart';
import 'dart:convert';
export 'package:FiduMart/generated/json/guild_user_income_entity.g.dart';

@JsonSerializable()
class GuildUserIncomeEntity {
	List<GuildUserIncomeList>? list;
	String? totalSales;
	String? totalIncome;
	String? totalConsumeDrnIncome;
	String? totalPledgeDrnIncome;
	String? totalRealIncome;
	String? totalMiningDrnIncome;
	String? totalMiningAndPledgeIncome;
	int? state;

	GuildUserIncomeEntity();

	factory GuildUserIncomeEntity.fromJson(Map<String, dynamic> json) => $GuildUserIncomeEntityFromJson(json);

	Map<String, dynamic> toJson() => $GuildUserIncomeEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class GuildUserIncomeList {
	String? id;
	String? day;
	String? sales;
	String? ratio;
	String? income;
	String? consumeDrnAmount;
	int? consumeDrnMemberCount;
	String? consumeDrnIncome;
	String? consumeDrnRatio;
	String? pledgeDrnAmount;
	int? pledgeDrnMemberCount;
	String? pledgeDrnIncome;
	String? pledgeDrnRatio;
	String? miningDrnIncome;
	String? level1Sales;
	int? level1MemberCount;
	String? level1Ratio;
	String? level1Income;
	String? level2Sales;
	int? level2MemberCount;
	String? level2Ratio;
	String? level2Income;
	String? level3Sales;
	int? level3MemberCount;
	String? level3Ratio;
	String? level3Income;
	String? realIncome;

	GuildUserIncomeList();

	factory GuildUserIncomeList.fromJson(Map<String, dynamic> json) => $GuildUserIncomeListFromJson(json);

	Map<String, dynamic> toJson() => $GuildUserIncomeListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}